/*
 * DistanceSensor.cpp
 *
 *  Created on: 10 dec. 2012
 *      Author: Admin
 */

#include "DistanceSensor.hpp"
#include "HardwareController.hpp"

/**
 * In absence of threads we'll have to poll each sensor manually
 * This method should only return true when the collision sensor is detecting a (possible) collision
 */
bool DistanceSensor::poll()
{
	return HardwareController::getHardwareController().pollDistanceSensor();
}

Sensor::SensorType DistanceSensor::getSensorType()
{
	return Sensor::DISTANCE;
}
